<!DOCTYPE html>
<html>
	<head>
		<title>CS147 Test</title>
		<style type="text/css" media="screen">@import "css/jqtouch.min.css";
		</style> 
		<style type="text/css" media="screen">@import "css/theme.min.css";
		</style>
		<meta name="viewport" content="width=device-width, user-scalable=no" />
		<meta name="apple-mobile-web- app-capable" content="yes" />
		<script src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js" 
		type="text/javascript">
		</script>
		<script src="js/jqtouch.min.js" type="application/x-javascript" 
		charset="utf-8">
		</script>
		<script src="js/date.js" type="text/javascript">
		</script>
		<script type="text/javascript"> 
			var jQT = $.jQTouch({ preloadImages: [ 'css/img/back_button.png', 
				'css/img/back_button_clicked.png', 'css/img/selection.png' ], 
				icon: 'css/img/workhorse.png', 
				startupScreen: 'css/img/loading.png' }); 
			var userid = 0;
		</script>
		<script type='text/javascript'>
			function magictodohandler(){
				var postdata = {
					taskduration: document.getElementById('ctaskduration').value,
					user: userid
				};
				$.post('php/magictodo.php', postdata, function(data) {
					document.getElementById('magictodolist').innerhtml=data;
					});
			}
		</script>
	</head>
	<body>
	<div id='magictodo' class='current'>
		<div class='toolbar'>
			<h1>Magic Todo</h1>
			<a class='button flip' href=''>Back</a>
			
		</div>
		<div>
			<ul class='rounded'>
				<li><a class='flip' href=''>Meetings</a></li>
				<li><a class='flip' href=''>User Settings</a></li>
			</ul>
		</div>
		<ul class='form'>
			<form name='magictodoform' action='#' method='post' 
				onsubmit='magictodohandler(); return false;'>
				<li>
					<input name='ctaskduration' type='text' 
						placeholder='Enter desired task length in minutes' />
				</li>
				<!--
				<li>
					<input type='submit'>
				</li>
				-->
			</form>
		</ul>
		<ul id='magictodolist' class='rounded'>
		</ul>
	</div>
	</body>
</html>
